package com.ljy.tkmodel.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * 雪花id用于存放到redis 解决接口幂等
 * */
public class SnowFlake {

   static String str = SnowFlake.getSnowFlakeID();

   public static String getSnowFlakeID(){
       Snowflake snowflake = IdUtil.getSnowflake();
       return snowflake.nextIdStr();
   }

}
